package com.sp2p.entity;

public class Avatar implements Comparable<Avatar> {
	public String key;
	public double weight;
	public String remarks;

	public Avatar(String key, double weight, String remarks) {
		this.key = key;
		this.weight = weight;
		this.remarks = remarks;
	}

	@Override
	public int compareTo(Avatar obj) {
		return (obj.weight - this.weight >= 0) ? -1 : 1;
	}

	@Override
	public String toString() {
		return this.key + ":" + this.weight;
	}
}